import 'package:flutter/material.dart';
import '/edit/GoodEditPage.dart';
import 'GoodListView.dart';

class GoodIndexPage extends StatelessWidget {

  const GoodIndexPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: null,
        body: Container(
          decoration: const BoxDecoration(
              image: DecorationImage(
                  image: AssetImage("images/icon_gezi_bottom.png"),
                  repeat: ImageRepeat.repeat
              )
          ),
          padding: EdgeInsets.all(15),
          child: Stack(
            children: [
              const GoodNoteListView(),
              Align(
                alignment : Alignment.bottomCenter,
                child : IconButton(
                  onPressed: () {
                    Navigator.push(
                        context,
                        MaterialPageRoute(builder: (context) => const GoodEditPage()));
                  },
                  icon: const Icon(Icons.add,size: 60),
                ),
              ),
              const Align(
                  alignment : Alignment.bottomLeft,
                  child : Icon(Icons.calendar_today_sharp,size: 30)
              ),
              const Align(
                alignment : Alignment.bottomRight,
                child : Icon(Icons.settings ,size: 30),
              )
            ],
          ),
        )
    );
  }

}